package com.example.yjhmatch.service.impl;

import com.example.yjhmatch.mapper.TournamentMapper;
import com.example.yjhmatch.service.TournamentService;
import com.yc.yjh.entity.Tournaments;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TournamentServiceImpl implements TournamentService {

    @Resource
    TournamentMapper tournamentMapper;

    @Override
    public List<Tournaments> selectAll() {
        return tournamentMapper.selectList(null);
    }
}
